package com.hczt.xhminiapp.db.repository;

import com.hczt.xhminiapp.db.entity.SysRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface SysRoleRepository extends JpaRepository<SysRole, String>, JpaSpecificationExecutor<SysRole> {

    List<SysRole> findByEnabledTrue();

    List<SysRole> findByRoleIdIn(List<String> roleIds);
}
